/**
 * Created by hhly on 2017/6/29.
 */

export default [
  {
    path: '/train', // 培训管理，培训的入口index
    name: 'train',
    component: resolve => require(['modules/train/index'], resolve)
  },
  {
    path: '/train/add', // 发起培训
    name: 'add',
    component: resolve => require(['modules/train/InitiatedTraining'], resolve),
    children: [
      {
        path: '/train/preview',
        component: resolve => require(['modules/train/TrainPreview'], resolve)
      }
    ]
  },
  {
    path: '/train/list', // 我的培训
    name: 'list',
    component: resolve => require(['modules/train/MyTraining'], resolve)
  },
  {
    path: '/train/manage/:id/:period', // 学员管理
    name: 'manage',
    component: resolve => require(['modules/train/StudentManage'], resolve)
  },
  {
    path: '/train/edit/:id/:period', // 学员管理
    name: 'editType',
    component: resolve => require(['modules/train/InitiatedTraining'], resolve)
  },
  {
    path: '/train/detail/:type', // 查看学员即学员详情页
    name: 'detailType',
    component: resolve => require(['modules/train/StudentDetail'], resolve)
  }
]
